#ifndef ASSERT_H
#define ASSERT_H

#ifdef NDEBUG
#define assert(expr)
#else /* NDEBUG */
#define assert(expr) if (!(expr)) {				\
    printf("assertion \"%s\" failed: file \"%s\", line %d\n",	\
	   #expr, __FILE__, __LINE__);				\
  }
#endif /* NDEBUG */

#endif /* ! ASSERT_H */
